#ifndef CUSTOMEITEM_H
#define CUSTOMEITEM_H

#include <QGraphicsLayoutItem>
#include <QGraphicsItem>

class CustomeItem : public QGraphicsLayoutItem , public QGraphicsItem
{
public:
    explicit CustomeItem(QGraphicsItem *parent = 0);

    void setPixmap(QPixmap *pic);

    void setGeometry(const QRectF &geom);
    QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;

    // Inherited from QGraphicsItem
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
        QWidget *widget = 0);

 private:
    QPixmap *m_pix;

    
};

#endif // CUSTOMEITEM_H
